//
//  JHNavView.m
//  JuniRengLish_iOS
//
//  Created by revogi on 2019/5/9.
//  Copyright © 2019 revogi. All rights reserved.
//

#import "JHNavView.h"

@implementation JHNavView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self initUI];
    }
    return self;
}



- (void)initUI
{
    self.bagImgView=[[UIImageView alloc]initWithFrame:CGRectMake(0,0,JKScreenW, 170)];
    self.bagImgView.image=[UIImage imageNamed:@"背景1"];
    self.bagImgView.contentMode=UIViewContentModeScaleAspectFill;
    self.bagImgView.clipsToBounds=YES;
    [self addSubview:self.bagImgView];
    
    self.navTitle=[[UILabel alloc]initWithFrame:CGRectMake(40,JKStatusBarHeight+10, JKScreenW-80,20)];
    self.navTitle.textColor=[UIColor whiteColor];
    self.navTitle.font=[UIFont systemFontOfSize:18];
    self.navTitle.textAlignment=NSTextAlignmentCenter;
    [self.bagImgView addSubview:self.navTitle];
    
}


@end
